80d392
@@ -249,6 +249,8 @@
private void createTempTable(org.apache.hadoop.hive.metastore.api.Table tbl,
               + " is not a directory or unable to create one");
         }
       }
+      // Make sure location string is in proper format
+      tbl.getSd().setLocation(tblPath.toString());
     }
 
     // Add temp table info to current session
